package basic;

import java.util.Scanner;

public class Xunhuanlianxi1 {
	public static void main(String[] args) {
		int x,y;
		long s,i;
		Scanner in=new Scanner(System.in);
		System.out.println("请输入两个数：");
		x=in.nextInt();
		y=in.nextInt();
		s=1;
		i=1;
	while(i<=y){
	    s=s*x;
	    i++;}
		System.out.println("计算结果为："+s);
		
	}

}
